package string;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String a = "(sb|ng|gun|cnm)";
        String b ="你sb吧，你个ng，gun，cnm";
        String c =b.replaceAll(a,"***");
        System.out.println(c);
    }
}
